<script setup>
import { watchEffect } from 'vue';

const props = defineProps(["id"])
// const route = useRoute();

watchEffect(()=>{
  // console.log(route.params.id)
  console.log(props.id);
})

</script>

<template>
  <div class="about">
    <h1>这是 {{props.id}} 新闻详情</h1>
  </div>
</template>

<style>
@media (min-width: 1024px) {
  .about {
    min-height: 100vh;
    display: flex;
    align-items: center;
  }
}
</style>
